package dealfinder

class Tag {
    String name
    byte[] image

    
    static hasMany = [deals : Deal]
    
    static belongsTo = [Deal]

    static constraints = {
        name(nullable:false)
        image(nullable:true, maxSize: 5242880) //5MB
    }
}
